package com.jeework.modules.sys.service;

import com.jeework.modules.sys.entity.User;
import com.jeework.modules.sys.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserDao userDao;

    public List<User> getUserInfo(){
        List<User> users=userDao.findUserInfo();
        //User user=null;
        return users;
    }

    public User doLogin(String username,String password) {
        User user = userDao.doLogin(username,password);
        return user;
    }

}
